package com.qqtech.qquan.coupon.service;

import java.util.List;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.coupon.enums.CouponBaseBizzTypeDictEnum;
import com.qqtech.qquan.coupon.model.*;

public interface CouponBaseService extends BaseService<CouponBase> {
	/**
	 * 减少库存
	 * @param id
	 * @return
	 */
	int updateMinusQuantity(Integer id, Integer quantity);
	
	/**
	 * update SET fullPrice=NULL,minusPrice=NULL,discount=NULL,days=NULL,bizzId=NULL,categoryId=NULL,price=NULL
	 * @param id
	 * @return
	 */
	int updateIsNull(Integer id);

	/**
	 * 根据类型查询-优惠卷id列表
	 * @param couponBaseBizzType
	 * @return
	 */
	List<Integer> getCouponIdsByBizzType(CouponBaseBizzTypeDictEnum couponBaseBizzType);
}